home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crosscountry USA Photo Safari
/
Crosscountry USA Photo Safari.iso
/
Data
/
cc_base
/
pak00_16bit_f.pk3
/
postcard.tab.p
< prev
next >
Wrap
Text File
|
2003-01-03
|
4KB
|
142 lines
{
X = -230;
Y = 60;
state = 0;
rest_x = -230;
expand_x = -10;
Hidden = 1;
ScriptID = script {
@loaded {
resid plateID;
resid tabID;
int plate_width;
plateID = GuiChildByName(SELF, "plate");
tabID = GuiChildByName(SELF, "tab");
plate_width = ResPropGetInt(plateID, "Width");
ResPropSetInt(SELF, "rest_x", - plate_width);
ResPropSetInt(tabID, "X", plate_width - 4);
}
};
ChildID = {
GuiAnimation("plate") {
AnimationID = "gui/dash/tab/plate/plate.pcx";
X = 0;
Width = 235;
Height = 180;
},
GuiLayer("postcard_layer") {
X = 0;
Y = 0;
ChildID = {
GuiTextInput("postcard_label") {
X = 20;
Y = 10;
Width = 190;
Height = 40;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/tab_w_on_g.tf";
ScriptID = Script {
@show {
ResPropSetStr(SELF,"InputText",MangleSIDToStr(191/*"Photos"*/));
}
};
},
GuiTextInput("postcard_message") {
X = 20;
Y = 30;
Width = 190;
Height = 60;
WordWrap = TRUE;
InputDisabled = TRUE;
FontID = "font/verdana_9.tf";
ScriptID = Script {
@animate {
resid Player;
resid Game;
str photo_current;
Game = ResByName("Game");
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
photo_current = ResPropGetStr(Player,"photo_current");
ResPropSetStr(SELF,"InputText",StrFormatStr(MangleSIDToStr(192/*"The last photo you picked up was %s. Click to see it in your photo album."*/), photo_current ));
}
};
},
GuiButton("view_photo") {
X = 55;
Y = 120;
TextID = Mangle(193/*"View Photo"*/);
StyleID = "gui/dash/tab/button/tab.gbs";
FontID = "font/tab_button.tf";
Width = 120;
AutoSize = Height;
ScriptID = Script {
@activate {
resid rid;
rid = ResByName("laptop.gl/photos");
ResParseEvent(ResByName("dash.gl/GPS"),"@activate");
ResParseEvent(rid,"@activate");
ResPropSetResID(rid, "RadioGroupSelectedID", rid);
Mark("laptop");
}
}
}
};
},
GuiAnimation("tab") {
X = 239;
Y = 47;
AnimationID = "gui/dash/tab/postcard/postcard_off.pcx";
ScriptID = script {
@activate {
resid Parent;
resid Player;
resid Game;
Game = ResByName("Game");
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
Parent = GuiParent(SELF);
if ( ResPropGetResID(Player,"truck_tab_expanded") == Parent) {
ResPropSetResID(Player,"truck_tab_expanded",RES_INVALID);
ResPropSetInt(GuiSiblingByName("postcard_layer"),"Hidden",TRUE);
} else {
ResPropSetInt(GuiSiblingByName("postcard_layer"),"Hidden",FALSE);
ResPropSetResID(SELF,"AnimationID",ResByName("gui/dash/tab/postcard/postcard_off.pcx"));
ResPropSetResID(Player,"truck_tab_expanded",Parent);
GuiToFront(Parent);
}
}
@animate {
resid Parent;
int state;
resid Player;
resid Game;
Game = ResByName("Game");
Player = ResPropGetResID(ResByName("Game"),"game_cur_player");
Parent = GuiParent(SELF);
if ( ResPropGetResID(Player,"truck_tab_expanded") == Parent) {
ResPropSetInt(Parent,"X",ResPropGetInt(Parent,"expand_x"));
ResPropSetInt(GuiSiblingByName("plate"),"Hidden",FALSE);
} else {
ResPropSetInt(GuiSiblingByName("plate"),"Hidden",TRUE);
ResPropSetInt(Parent,"X",ResPropGetInt(Parent,"rest_x"));
}
}
}
}
};
}